<template>
  <div class="mainTabBar">
    <!-- 插入插槽 -->
    <tab-bar>
      <tab-bar-item path="/home" activeColor="red">
        <template v-slot:item-icon><img src="../../../assets/img/TabBarItem/icontabbarhomeup.svg" alt="">
        </template>
        <template v-slot:item-icon-active>
          <img  src="../../../assets/img/TB_active/tabbarhomeselect.svg" alt="">
        </template>
        <template v-slot:item-text>
          <div>首页</div>
        </template>
        
      </tab-bar-item>
      <tab-bar-item path="/category">
        <template v-slot:item-icon>
          <img src="../../../assets/img/TabBarItem/tabbar-icon-chanpin-default.svg" alt="">
        </template>
        <template v-slot:item-icon-active>
          <img  src="../../../assets/img/TB_active/tabbar-icon-chanpin-selected.svg" alt="">
        </template>
        <template v-slot:item-text>
          <div>分类</div>
        </template>
      </tab-bar-item>

      <tab-bar-item path="/cart">
        <template v-slot:item-icon>
          <img src="../../../assets/img/TabBarItem/icontabbarshoppingup.svg" alt="">
        </template>
        <template v-slot:item-icon-active>
          <img  src="../../../assets/img/TB_active/icontabbarshoppingup.svg" alt="">
        </template>
        <template v-slot:item-text>
          <div>购物车</div>
        </template>
      </tab-bar-item>

      <tab-bar-item path="/profile">
        <template v-slot:item-icon>
          <img src="../../../assets/img/TabBarItem/icontabbarmyup.svg" alt="">
        </template>
        <template v-slot:item-icon-active>
          <img  src="../../../assets/img/TB_active/tabbar-icon-wode-selected.svg" alt="">
        </template>
        <template v-slot:item-text>
          <div>我的</div>
        </template>
      </tab-bar-item>
    </tab-bar>
  </div>
</template>

<script>
import TabBar from "../../common/TabBar/TabBar.vue";
import TabBarItem from "../../common/TabBar/TabBarItem.vue";

export default {
  name: "App",
  components: {
    TabBar,
    TabBarItem,
  },
};
</script>

<style>
@import "../../../assets/css/base.css";

.mainTabBar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}
</style>
